<?php

use Illuminate\Database\Seeder;

class CommentsTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        //插入数据
        DB::table('comments')->insert(
            [
                'id' => '1',
                'uid' => '1',
                'cid' => '3',
                'content' => '内容很详细，学习了！',
            ],
            [
                'id' => '2',
                'uid' => '1',
                'cid' => '3',
                'content' => '内容很详细，学习了！',
            ],
            [
                'id' => '3',
                'uid' => '1',
                'cid' => '3',
                'content' => '内容很详细，学习了！',
            ],
            [
                'id' => '4',
                'uid' => '1',
                'cid' => '3',
                'content' => '实用，点赞了！',
            ]
            ,
            [
                'id' => '5',
                'uid' => '1',
                'cid' => '3',
                'content' => '内容很详细，学习了！',
            ]
            ,
            [
                'id' => '6',
                'uid' => '1',
                'cid' => '3',
                'content' => '内容很详细，学习了！',
            ]
            ,
            [
                'id' => '7',
                'uid' => '1',
                'cid' => '3',
                'content' => '内容很详细，学习了！',
            ],
            [
                'id' => '8',
                'uid' => '2',
                'cid' => '3',
                'content' => '内容很详细，收藏了！',
            ]

        );
    }
}
